package com.kgame5.xtank3d.model.block {
import kgame5.enginex.enum.Layer3DEnum;
import kgame5.enginex.part.GViewComp;
import kgame5.k3d.core.obj3d.node3d.Node3D;

import com.kgame5.xtank3d.resource.ResourceManagerX;
import com.kgame5.xtank3d.vo.BlockVO;

/**
 * @author kk
 */
public class BlockViewComp extends GViewComp{
	
	private var md:Node3D;
	
	public function BlockViewComp(vo:BlockVO){
		md=ResourceManagerX.getInstance().getBlock(vo);
		md.layerID = Layer3DEnum.LAYER_MAIN;//千万要加上这个
	}
	
	override public function getNode3D():Node3D{
		return md;
	}
	
	public function move(x:int,y:int,z:int):void{
		md.x=x;
		md.y=y;
		md.z=z;
	}
	//update
	//dispose
}//end of class
}
